package oop4.graph;

public class Rectangle extends Graph {    //长方形
    double a, b;
    double area, round;

    public Rectangle(double a, double b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public double getArea() {
        area = a * b;
        return area;
    }

    @Override
    public double getRound() {
        round = (a + b) * 2;
        return round;
    }
}
